﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPMS.Log.Utility
{
    /// <summary>
    /// 模板解析器接口
    /// </summary>
    /// <remarks>用于解析模板</remarks>
    /// <history>
    /// [zanezeng]               2009/10/20 10:31    创建
    /// </history>
    public interface IPatternParser
    {
        /// <summary>
        /// 将给定的命名属性提供者解析为字符串
        /// </summary>
        /// <param name="provider">要解析为字符串的命名属性提供者</param>
        /// <param name="formatProvider">一个<see cref="IFormatProvider"/>，它提供区域性特定的格式设置信息</param>
        /// <returns>定的命名属性提供者的字符串描述</returns>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/10/20 10:42    创建
        /// </history>
        string Parse( INamedPropertyProvider provider, IFormatProvider formatProvider );
    }
}
